home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / MEM2.ARJ / MEM2.DOC next >
Text File  |  1991-06-29  |  3KB  |  61 lines

  1. About MEM2 (in library 2 as MEM2.ZIP).
  2.  
  3. Why MEM2?
  4. ---------
  5. MEM2 was written to solve a mystery:  Some time ago we noted that there were
  6. apparent speed variations between different CPUs which had the same nominal
  7. clock rate.  Yet speed-measuring utilities (like Norton) reported that these
  8. machines were all operating at the same clock rate, so we were mystified.
  9.  
  10. A Word On Computer Architecture
  11. -------------------------------
  12. The chips used to create PC memory typically operate at speeds between
  13. 80 and 120 ns.  If your CPU is operating at 33 Mhz, that's about 30ns per
  14. machine cycle.  Therefore, your RAM chips operate between 2.5 and 3.5 SLOWER
  15. than the CPU.
  16.  
  17. One of the jobs a computer architect has is to somehow cause your machine to
  18. run AS IF its memory was fast enough to keep up with the CPU.  This is
  19. accomplished by hardware caches consisting of small amounts of very high speed
  20. memory.  Such caches are designed with widely varying degrees of sophistication
  21. and competence.
  22.  
  23. Now most CPU speed-measuring utilities perform rather naive tests of CPU
  24. speed.  And, you may be sure that the computer vendors take care to insure
  25. that the most commonly used programs show their machines in a good light.
  26. However, in REAL applications major differences emerge.
  27.  
  28. On a well engineered machine like, say, a Compaq, the nominal CPU clock rate
  29. will actually be achieved in normal operation.  On some cut-rate machines with
  30. small or badly implemented caches, extra memory wait states must be inserted
  31. to compensate for shoddy or inexpensive (cheap?) designs.
  32.  
  33. The bottom line:  you don't always get the performance you're paying for.
  34.  
  35. What MEM2 Does
  36. --------------
  37. MEM2 tests memory performance by performing 4095 byte block moves across all
  38. of memory.  Of course, memory references across a broad range of addresses
  39. are much more typical of real operation than more narrow tests.
  40.  
  41. The exact number of machine cycles required for these operations is calculated
  42. in advance.  Then the operation is timed using the high-resolution timer.
  43. Next, this time is divided by the known number of machine cycles required to
  44. execute the operation.  This yields the effective CPU clock rate which is
  45. reported.
  46.  
  47. Most machines show effective clock rates in the vicinity of the nominal clock
  48. rate;  the best engineered machines match exactly. Unfortunately however,
  49. we've seen effective clock rates as poor as 1/3 the nominal clock rate
  50. (i.e. a supposed 33MHz machine which actually performs like an 11 or 12 MHz
  51. machine).
  52.  
  53. The results are automatically scaled to reflect the differences between 386
  54. and 486 processors.  However, if you run on a 386sx you'll have to multiply
  55. the clock rate the program calculates by 2.5 to scale it properly for a 386sx.
  56. (On a 486 the instruction we're timing takes 3 cycles per iteration, on a 386
  57. it takes 4 cycles, and on a 386sx it takes 10 cycles).
  58.  
  59. We've found that MEM2 yields results that closely match our subjective
  60. impressions of machines we've tested.
  61.